import { App } from "vue";
import clickOutside from "./click-outside";
import focus from "./focus";

const directives = {
  clickOutside,
  focus
}

export default {
  install(app: App) {
    Object.keys(directives).forEach(name => {
      app.directive(name, directives[name])
    })
  }
}